<layout name="layout" />
<!-- 搜索表单 -->
<div class="form-div">
    <form action="__ACTION__" method="GET" name="searchForm" id="from">
		<P>
			品牌名称：
			<input value="<?php echo I('get.gn'); ?>" type="text" name="gn" size="60" />
		</P>

		<P>
			<input type="submit" value="搜索" />
		</P>
    </form>
</div>
<!-- 列表 -->
<div class="list-div" id="listDiv">
	<table cellpadding="3" cellspacing="1">
    	<tr>
            <th >品牌名称</th>
            <th >品牌官网</th>
            <th >品牌logo</th>
			<th width="60">操作</th>
        </tr>
		<?php foreach ($data as $k => $v): ?>            
			<tr class="tron">
				<td><?php echo $v['brand_name']; ?></td>
				<td><?php echo $v['site_url']; ?></td>
				<td><?php echo showImage($v['logo']); ?></td>

		        <td align="center">
		        	<a href="<?php echo U('edit?id='.$v['id']); ?>" title="编辑">编辑</a> |
	                <a href="<?php echo U('delete?id='.$v['id'].'&p='.I('get.p')); ?>" onclick="return confirm('确定要删除吗？');" title="移除">移除</a> 
		        </td>
	        </tr>
        <?php endforeach; ?> 
		<?php if(preg_match('/\d/', $page)): ?>  
        <tr><td align="right" id="page-table"  nowrap="true" colspan="99" height="30"><?php echo $page; ?></td></tr> 
        <?php endif; ?> 
	</table>
</div>

<script>
    $(':radio').click(function(){
        $('#from').submit();
    });
</script>
